-- card: 9178 from stack: in -- bmap block id: 12920 -- flags: 0000 -- background id: 12278 -- name: peeklong -- part 3 (button) -- low flags: 00 -- high flags: A003 -- rect: left=362 top=55 right=78 bottom=417 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Demo ----- HyperTalk script ----- on mouseUp put empty into field "data" ask "Peek At " with "411000" if it is empty then exit mouseup show field "data" put it into address put address into field "data" repeat with i=1 to 10 put space & Space & peeklong(address,L) after field "data" put last word of field "data" into address end repeat put return & return & "Click Mouse to Exit Demo" after field "data" wait until the mouseclick hide field "data" end mouseUp -- part contents for background part 68 ----- text ----- Peeklong returns the unsigned 32-bit integer stored at a given address. This value is represented in hexadecimal, but you may use the HexToDec XFCN provided in this stack to convert the value to a decimal if you wish. A typical useage of peeklong would be: put peeklong("411000") into temp On the Mac Plus, this would put the value 4CDF0007 into the variable temp. As an option, you may include a second parameter with the Peeklong XFCN. If peeklong detects a second parameter, it returns a 2-line result that consists of the longinteger stored at the given address in the first line and the next viable address (the original address+8) in the second line. This option provides a simple and effective way to use peeklong in a script to peek into a range of addresses. See the demo on this card for an example. The address provided to peeklong must be even or an error will result. -- part contents for background part 69 ----- text ----- 411000 4CDF0007 411004 554F2F00 411008 2F0148E7 41100C 60007000 411010 6112301F 411014 225F3F40 411018 00042F38 41101C 029A6602 411020 584F4E75 411024 4E560000 411028 Click Mouse to Exit Demo